package moodish.tests;

import moodish.comm.ServerSideMessage;

/*
 * 
 * ESTE CODIGO FOI ALTERADO PARA PODER TESTAR O SERVERE
 * ESTA CLASSE NAO SERA UTILIZADA NA VERSAO FINAL DO SERVIDOR, POIS DIZ RESPEITO A QUEM FAZ O NETWORK
 */

public class ServerMessage implements ServerSideMessage {

	private ServerSideMessage.Type type;
	private String payload;
	private String clientNickname;

	public ServerMessage(ServerSideMessage.Type type, String payload,
			String clientNickname) {
		this.type = type;
		this.payload = payload;
		this.clientNickname = clientNickname;
	}

	@Override
	public ServerSideMessage.Type getType() {
		// TODO Auto-generated method stub
		return this.type;
	}

	@Override
	public String getPayload() {
		// TODO Auto-generated method stub
		return this.payload;
	}

	@Override
	public String getClientNickname() {
		// TODO Auto-generated method stub
		return this.clientNickname;
	}

}
